﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OA.DBUtility;

namespace OA.Model
{
    [MappingTable("ProjectProblemView")]
    public class ProjectProblemInfoView : ProjectProblemInfo
    {
    }

    [MappingTable("ProjectProblem")]
    public class ProjectProblemInfo
    {
        #region Model
        private int _id;
        private string _projectid;
        private string _devicename;
        private int? _devicecount;
        private string _faultposition;
        private string _productmodel;
        private string _productmodular;
        private DateTime? _happentime;
        private string _faultclass;
        private string _description;
        private string _processmethod;
        private string _reason;
        private string _effectrange;
        private string _result;
        private string _state;
        private string _faulttype;
        private string _problemclass;
        private string _measures;
        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectId")]
        public string ProjectId
        {
            set { _projectid = value; }
            get { return _projectid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("DeviceName")]
        public string DeviceName
        {
            set { _devicename = value; }
            get { return _devicename; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("DeviceCount")]
        public int? DeviceCount
        {
            set { _devicecount = value; }
            get { return _devicecount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("FaultPosition")]
        public string FaultPosition
        {
            set { _faultposition = value; }
            get { return _faultposition; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProductModel")]
        public string ProductModel
        {
            set { _productmodel = value; }
            get { return _productmodel; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProductModular")]
        public string ProductModular
        {
            set { _productmodular = value; }
            get { return _productmodular; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("HappenTime")]
        public DateTime? HappenTime
        {
            set { _happentime = value; }
            get { return _happentime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("FaultClass")]
        public string FaultClass
        {
            set { _faultclass = value; }
            get { return _faultclass; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Description")]
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProcessMethod")]
        public string ProcessMethod
        {
            set { _processmethod = value; }
            get { return _processmethod; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Reason")]
        public string Reason
        {
            set { _reason = value; }
            get { return _reason; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("EffectRange")]
        public string EffectRange
        {
            set { _effectrange = value; }
            get { return _effectrange; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Result")]
        public string Result
        {
            set { _result = value; }
            get { return _result; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("State")]
        public string State
        {
            set { _state = value; }
            get { return _state; }
        }
        [DataField("HardwareProblems")]
        public string HardwareProblems { get; set; }
        [DataField("SoftwareProblems")]
        public string SoftwareProblems { get; set; }
        [DataField("OperationProblems")]
        public string OperationProblems { get; set; }
        [DataField("OtherProblems")]
        public string OtherProblems { get; set; }
        [DataField("SkillProblems")]
        public string SkillProblems { get; set; }
        [DataField("ManageProblems")]
        public string ManageProblems { get; set; }
        [DataField("CorrectPlan")]
        public string CorrectPlan { get; set; }
        [DataField("Implementation")]
        public string Implementation { get; set; }
        [DataField("ExecuResult")]
        public string ExecuResult { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DataField("FaultType")]
        public string FaultType
        {
            set { _faulttype = value; }
            get { return _faulttype; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProblemClass")]
        public string ProblemClass
        {
            set { _problemclass = value; }
            get { return _problemclass; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Measures")]
        public string Measures
        {
            set { _measures = value; }
            get { return _measures; }
        }
        #endregion Model
    }
}
